/*
 * Licensed this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 * AUTHOR: Sebastian Ritter
 */
using System;
using System.Collections.Generic;
using System.Text;

namespace org.boapi.ui.util {
  /// <summary>
  /// Helper type for user interfaces
  /// </summary>
  public class ShoppingUIHelper {
    /// <summary>
    /// Returns input pattern for ISSN
    /// </summary>
    /// <see cref="org.boapi.shop.ISSN"/>
    /// <returns></returns>
    public static String getMaskForISSN () {
      return "0000-000A";
    }
    /// <summary>
    /// Return input pattern for actually ISBN
    /// </summary>
    /// <see cref="org.boapi.shop.ISBN13"/>
    /// <returns></returns>
    public static String getMaskForISBN () {
      return "\\970-0-00000-000-A";
    }
    /// <summary>
    /// Return input pattern for actually ISMN
    /// </summary>
    /// <see cref="org.boapi.shop.ISMN"/>
    /// <returns></returns>
    public static String getMaskForISMN () {
      return "\\979-\0-00000-000-A";
    }
    /// <summary>
    /// Return input pattern for old ISBN
    /// </summary>
    /// <see cref="org.boapi.shop.ISBN10"/>
    /// <returns></returns>
    public static String getMaskForISBN10 () {
      return "0-00000-000-A";
    }
    /// <summary>
    /// Return input pattern for EAN13
    /// </summary>
    /// <returns></returns>
    public static String getMaskForEAN () {
      return ShoppingUIHelper.getMaskForGTIN();
    }
    /// <summary>
    /// Return input pattern for GTIN
    /// </summary>
    /// <returns></returns>
    public static String getMaskForGTIN () {
      return "000-0-00000-000-A";
    }
  }
}
